<?php
if (file_exists(dirname(__FILE__) . '/updating.txt'))
{
    include(dirname(__FILE__) . '/protected/view/site/updating.html');
}
else
{
    $yii = dirname(__FILE__) . '/../../../yii/framework/yii.php';
    $config = dirname(__FILE__) . '/protected/config/main.php';
    require_once($yii);
    Yii::createWebApplication($config)->run();
}
?>